<script  lang="ts" setup>
import { ref, onMounted } from 'vue'
interface ListInterface {
    name: string|number,
    id: string|number
  
}
const list = ref<ListInterface[]>([
    {
        name:111,
        id:1,
    },
    {
        name:1111,
        id:21,
    },
    {
        name:1121,
        id:3,
    }

  /* ... */
])

const itemRefs = ref([])

onMounted(() => console.log(itemRefs.value))
</script>

<template>
  <ul>
    <li v-for="item in list" ref="itemRefs">
      {{ item }}
    </li>
  </ul>
</template>